//
//  UIButton+Indexpath.m
//  ShortVideo-ccinon
//
//  Created by LIN TONG on 2017/6/27.
//  Copyright © 2017年 LIN TONG. All rights reserved.
//

#import "UIButton+Indexpath.h"
#import <objc/runtime.h>

static const char *__Index_Path__ = "__Index_Path__";
@implementation UIButton(IndexPath)
@dynamic indexPath;

- (void)setIndexPath:(NSIndexPath *)indexPath{
    objc_setAssociatedObject(self, __Index_Path__, indexPath, OBJC_ASSOCIATION_RETAIN);
}

- (NSIndexPath *)indexPath{
    return (NSIndexPath *)objc_getAssociatedObject(self, __Index_Path__);
}
@end
